package org.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "inspection_log", autoResultMap = true)
public class InspectionLog {
    // id
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    // 考察对象
    private Long userId;

    //
    // 考察类型
    private Integer status;

    // 记录日期
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime recordDate;

    // 考察人
    private String checker;

    // 评分
    private Integer inspectionScore;

    // 结论
    private Integer conclusion;

    // 考察内容
    private String inspectionContent;

    // 问题建议
    private String advice;

    // 创建时间
    private LocalDateTime createTime;

    // 更新时间
    private LocalDateTime updateTime;
}
